package com.atguigu.gulimall.feign.ware.fallback;

import com.atguigu.gulimall.feign.ware.WareFeignClient;
import lombok.extern.slf4j.Slf4j;

/**
 * @author nicc
 * @version 1.0
 * @className WareFeignClientFallBack
 * @date 2022-10-23 17:45
 */
@Slf4j
public class WareFeignClientFallBack implements WareFeignClient {
    @Override
    public String hasStock(Long skuId, Integer num) {
        log.info("触发容错兜底");
        return "1";
    }
}
